package com.ruoyi.web.controller.deal;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.deal.bo.HyDealCollectQueryBo;
import com.ruoyi.deal.service.IHyDealCollectService;
import com.ruoyi.deal.vo.HyDealCollectVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 收藏管理Controller
 *
 * @author lixin
 * @date 2021-07-04
 */
@Api(value = "收藏管理控制器", tags = {"收藏管理管理"})
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController
@RequestMapping("/user/collect")
public class HyDealCollectController extends BaseController {

    private final IHyDealCollectService iHyDealCollectService;

    /**
     * 查询收藏管理列表
     */
    @ApiOperation("查询收藏管理列表")
    @PreAuthorize("@ss.hasPermi('user:collect:list')")
    @GetMapping("/list")
    public TableDataInfo<HyDealCollectVo> list(@Validated HyDealCollectQueryBo bo) {
        return iHyDealCollectService.queryPageList(bo);
    }


}
